//
//  SSNetworkTools.h
//
//  Created by Esther on 2016/12/15.
//  Copyright © 2016年 Esther. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface SSNetworkTools : NSObject

/**
 单例

 @return 单例
 */
+ (instancetype)shared;

/**
 发送get请求

 @param urlString 链接字符串
 @param completeBlock 回调传回的值
 */
- (void)ss_getLoadData:(NSString *)urlString completeBlock:(void(^)(id responseObject,NSError *error))completeBlock;

/**
 发送get请求(带参数)

 @param urlString 链接字符串
 @param parameters 传递的参数
 @param completeBlock 回调传回的值
 */
- (void)ss_getLoadData:(NSString *)urlString parameters:(id)parameters completeBlock:(void(^)(id responseObject,NSError *error))completeBlock;

/**
 发送POST请求

 @param urlString 链接字符串
 @param parameters 传递的参数
 @param completeBlock 回调传回的值
 */
- (void)ss_postLoadData:(NSString *)urlString parameters:(id)parameters completeBlock:(void(^)(id responseObject,NSError *error))completeBlock;

- (void)ss_postFocusData:(NSString *)urlString parameters:(id)parameters completeBlock:(void (^)(id, NSError *))completeBlock;

@end
